package com.leyou.mall.data.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xhh
 * @since 2022-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MallSpecsThree对象", description="")
public class MallSpecs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品价格id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "规格1的id")
    private Integer oneId;

    @ApiModelProperty(value = "规格2的id")
    private Integer twoId;

    @ApiModelProperty(value = "规格3的id")
    private Integer threeId;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "库存锁")
    private Integer stockLock;

    @ApiModelProperty(value = "预警库存")
    private Integer stockWarning;

    @ApiModelProperty("1-有货/上架,2-超出预警库存50%/下架")
    private Boolean state;

      @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @TableLogic
    private Integer deleted;


}
